package com.le.tester.book.effectivejava3.focus16;


/**
 * createTime：2025-06-18 10:57
 * description：公共类应该暴露访问属性的方法，而不是直接访问属性
 */
public final class Time {

    private static final int HOURS_PER_DAY = 24;
    private static final int MIN_PER_HOUR = 60;

    public final int hour;
    //private final int hour;
    public final int min;

    public Time(int hour, int min) {
        this.hour = hour;
        this.min = min;
    }
}
